package cn.tedu.mall.order.mappers;

import cn.tedu.mall.pojo.order.model.OmsOrderItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderItemMapper {
    // @Param("omsOrderItems") 与 OrderItemMapper的foreach循环中参数名相同
    void insertOrderItems(@Param("omsOrderItems") List<OmsOrderItem> omsOrderItems);

    Boolean selectExistsByOrderId(@Param("orderId") Long id);

    List<String> selectSkuIdsByOrderId(@Param("orderId") Long id);
}
